package com.alkaid.anime.service;

import com.alkaid.commons.entity.Anime;
import com.alkaid.commons.entity.Collect;
import com.alkaid.commons.ex.UnknownErrorException;

import java.util.List;

/**
 * @author Kylin
 * 追番
 */
public interface CollectService {
    /**
     * 查询是否追番
     *
     * @param select the select
     * @return the thumb
     * @throws UnknownErrorException the unknown error exception
     */
    Boolean getCollect(Collect select) throws UnknownErrorException;

    /**
     * 追番/取消追番
     *
     * @param select the select
     * @throws UnknownErrorException the unknown error exception
     */
    void setCollect(Collect select) throws UnknownErrorException;

    /**
     * 查询用户追番列表
     *
     * @param userId the user id
     * @return the thumb
     */
    List<Anime> getCollectList(Long userId);
}
